#include <stdio.h>

int main ()
{
	float r1,r2;
	float R = 0;
	
	scanf("%f %f",&r1,&r2);
	R = 1/(1/r1 + 1/r2);
	printf("%.2f",R);
	
	return 0; 
}
